package cn.itcast.controller;

import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;

public class UserController {
    /*//@RequestMapping(method = RequestMethod.GET)
    @GetMapping()
    public void findAll(){
        System.out.println("查询");
    }
    //@RequestMapping(method = RequestMethod.POST)
    @PostMapping
    public void add(){
        System.out.println("添加");
    }

    //@RequestMapping(method = RequestMethod.DELETE)
    @DeleteMapping
    public void delete(){
        System.out.println("删除");
    }
    //@RequestMapping(method = RequestMethod.PUT)
    @PutMapping
    public void update(){
        System.out.println("修改");
    }*/
    /*@DeleteMapping
    public Result deleteExercise(@RequestParam("id") String idd,@RequestParam(defaultValue = "18") String age, @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate date) {
        *//*String[] ids = request.getParameterValues("id");
        for (String id : ids) {
            int i = Integer.parseInt(id);
            System.out.println( i);
        }*//*
        System.out.println( idd);
        System.out.println( age);
        System.out.println( date);
        return null;

    }*/
}
